/**
 *
 */
package com.mmlc.network.filter;

import com.androidnetframe.BaseParentActivity;
import com.androidnetframe.httputil.BaseRequestFilterLayer;
import com.androidnetframe.httputil.EntryPageName;
import com.mmlc.network.requestbean.DeleteShoppingCartRequestBean;
import com.mmlc.network.responsebean.DeleteShoppingCartResonseBean;

/**
 * @author 何强
 *         2015-12-18
 * @修改 张园汀 2015-12-30
 */
public class DeleteShoppingCartRequestFilter extends BaseRequestFilterLayer {
    public DeleteShoppingCartRequestBean requestBean = new DeleteShoppingCartRequestBean();

    public DeleteShoppingCartRequestFilter(BaseParentActivity context) {
        super(context);
        requestBean.method = "clearCart";
        makeRequestParams.entryPageName = EntryPageName.n4_a + "";
        makeRequestParams.setReqeustBean(requestBean, true);
    }


    public String totalPrice;
    @Override
    public void getResultSuccess(String responseString, Object obj) {
        DeleteShoppingCartResonseBean bean = (DeleteShoppingCartResonseBean) obj;
        totalPrice = bean.getData().getTotal_price()+"";
    }
}
